/**
 * Copyright &copy; 2016-2017 <a href="http://git.oschina.net/whoamien/backend_management">Backend Management</a> All rights reserved.
 */
package com.xw.app.service;

import java.util.List;
import java.util.Map;

import com.xw.app.model.SysDict;
import com.xw.framework.base.service.BaseService;

/**
 * The Interface SysDictService.
 *
 * @author Xi Wei
 */
public interface SysDictService extends BaseService<SysDict, Long>{

	/**
	 * Check code exist.
	 *
	 * @param dictCode the dict code
	 * @param id the id
	 * @param parentId the parent id
	 * @return true, if successful
	 */
	boolean checkCodeExist(String dictCode,Long id,Long parentId);
	
	/**
	 * Gets the dict map by code.
	 *
	 * @param parentCode the parent code
	 * @return the dict map by code
	 */
	public Map<String,String> getDictMapByCode(String parentCode);
	
	/**
	 * Gets the dict integer map by code.
	 *
	 * @param parentCode the parent code
	 * @return the dict integer map by code
	 */
	public Map<Integer,String> getDictIntegerMapByCode(String parentCode);

	/**
	 * Gets the all parent dict.
	 *
	 * @return the all parent dict
	 */
	List<SysDict> getAllParentDict();

}
